<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>运行时配置</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="memtrack.installation.html">安装</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="memtrack.resources.html">资源类型</a></div>
 <div class="up"><a href="memtrack.setup.html">安装／配置</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="memtrack.ini" class="section">
 <h2 class="title">运行时配置</h2>
 <p class="simpara">
这些函数的行为受 <var class="filename">php.ini</var> 中的设置影响。
</p>
 <p class="para">
  <table class="doctable table">
   <caption><strong>Memtrack Configuration Options</strong></caption>
   
    <thead>
     <tr>
      <th>名字</th>
      <th>默认</th>
      <th>可修改范围</th>
     </tr>

    </thead>

    <tbody class="tbody">
     <tr>
      <td><a href="memtrack.ini.html#ini.memtrack.enabled" class="link">memtrack.enabled</a></td>
      <td>&quot;0&quot;</td>
      <td>PHP_INI_SYSTEM</td>
     </tr>

     <tr>
      <td>memtrack.soft_limit</td>
      <td>&quot;0&quot;</td>
      <td>PHP_INI_ALL</td>
     </tr>

     <tr>
      <td>memtrack.hard_limit</td>
      <td>&quot;0&quot;</td>
      <td>PHP_INI_ALL</td>
     </tr>

     <tr>
      <td>memtrack.vm_limit</td>
      <td>&quot;0&quot;</td>
      <td>PHP_INI_ALL</td>
     </tr>

     <tr>
      <td>memtrack.ignore_functions</td>
      <td>&quot;&quot;</td>
      <td>PHP_INI_SYSTEM</td>
     </tr>

    </tbody>
   
  </table>

  有关 PHP_INI_* 样式的更多详情与定义，见 <a href="configuration.changes.modes.html" class="xref">配置可被设定范围</a>。
 </p>

<p class="para">这是配置指令的简短说明。</p>

<p class="para">
 <dl>

  
  
   <dt id="ini.memtrack.enabled">
    <em><code class="parameter">memtrack.enabled</code></em>
    <span class="type"><a href="language.types.boolean.html" class="type boolean">boolean</a></span>
   </dt>

   <dd>

    <p class="para">
     Disables or enables the extension. Default value is 0, i.e. disabled.
    </p>
   </dd>

  
  
  
   <dt id="ini.memtrack.soft-limit">
    <em><code class="parameter">memtrack.soft_limit</code></em>
    <span class="type"><a href="language.types.integer.html" class="type int">int</a></span>
   </dt>

   <dd>

    <p class="para">
     Soft memory limit. 
    </p>
    <p class="para">
     The extension checks memory consumption before and after executing an 
     op_array and produces a warning is the difference between the two values
     is equal to or greater than the soft limit, but only if the function is not
     ignored. 
    </p>
    <p class="para">
     Setting this option to 0 also disables both soft and hard limit warnings.
     Default value is 0, i.e. no warnings is produced.
    </p>
   </dd>

  
  
  
   <dt id="ini.memtrack.hard-limit">
    <em><code class="parameter">memtrack.hard_limit</code></em>
    <span class="type"><a href="language.types.integer.html" class="type int">int</a></span>
   </dt>

   <dd>

    <p class="para">
     Hard memory limit.
    </p>
    <p class="para">
     The extension checks memory consumption before and after executing an 
     op_array and produces a warning is the difference between the two values
     is equal to or greater than the hard limit, <em class="emphasis">even if the function is
     ignored</em>. 
     Setting this option to 0 disables hard limit warnings completely.
     Default value is 0, i.e. no hard limit warnings is produced.
    </p>
   </dd>

  
  
  
   <dt id="ini.memtrack.vm-limit">
    <em><code class="parameter">memtrack.vm_limit</code></em>
    <span class="type"><a href="language.types.integer.html" class="type int">int</a></span>
   </dt>

   <dd>

    <p class="para">
     Virtual memory limit (set on a process).
    </p>
    <p class="para">
     This limit is checked only on shutdown and a warning is produced if the
     value is greater than or equal to the limit.
    </p>
    <p class="para">
     This option is currently supported only on OSes where mallinfo() function
     is available (i.e. Linux).
    </p>
   </dd>

  
  
  
   <dt id="ini.memtrack.ignore-functions">
    <em><code class="parameter">memtrack.ignore_functions</code></em>
    <span class="type"><a href="language.types.string.html" class="type string">string</a></span>
   </dt>

   <dd>

    <p class="para">
     A comma or whitespace-separated list of functions which are to be ignored
     by soft_limit. The values are case-insensitive, for class methods use
     class::method syntax.
    </p>
   </dd>

  
  
 </dl>

</p>
</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="memtrack.installation.html">安装</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="memtrack.resources.html">资源类型</a></div>
 <div class="up"><a href="memtrack.setup.html">安装／配置</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
